package com.hnucm.cooklife.contract.mecollect;

import com.hnucm.cooklife.base.IBaseView;
import com.hnucm.cooklife.bean.db.Dish;
import com.hnucm.cooklife.bean.me.DishColl;
import com.hnucm.cooklife.bean.me.ToAddCollectData;

import java.util.List;

import io.reactivex.Observable;

public class Contract {
    public interface IMeCollectModel{
        Observable<List<DishColl>> loadMeCollect(int userId);
        Observable<List<DishColl>> refreshMeCollect(int userId);

        Observable<ToAddCollectData> unCollect(int userId,int dishId);
    }

    public interface IMeCollectView extends IBaseView{
        void onLoadMeCollect(List<DishColl> dishes);
        void onRefreshMeCollect(List<DishColl> dishes);
        void onUnCollect(ToAddCollectData collectData,int dishId);
    }

    public interface IMeCollectPresenter{
        void loadMeCollect(int userId);
        void refreshMeCollect(int userId);
        void unCollect(int userId,int dishId);
    }
}
